package com.sskj.hangqing.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.hangqing.bean.HelpBean;
import com.sskj.hangqing.ui.activity.GuideWebActivity;
import com.sskj.lib.http.JsonCallBack;


public class GuideWebActivityPresenter extends BasePresenter<GuideWebActivity> {



    public void help(String type) {
        httpService.help(type)
                .execute(new JsonCallBack<HttpData<HelpBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<HelpBean>> response) {
                        mView.updateHelp(response.body().getData());
                    }
                });
    }
    public void aboutUs() {
        httpService.aboutUs()
                .execute(new JsonCallBack<HttpData<HelpBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<HelpBean>> response) {
                        mView.updateHelp(response.body().getData());
                    }
                });
    }
    public void registerAgreement() {
        httpService.registerAgreement()
                .execute(new JsonCallBack<HttpData<HelpBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<HelpBean>> response) {
                        mView.updateHelp(response.body().getData());
                    }
                });
    }
    public void privateService() {
        httpService.privateService()
                .execute(new JsonCallBack<HttpData<HelpBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<HelpBean>> response) {
                        mView.updatePrivate(response.body().getData());
                    }
                });
    }
}
